<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{.title}}</title>
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
    <div class="container">
        <div class="login-box">
            <h1>管理员登录</h1>
            
            {{if .error}}
            <div class="error-message">{{.error}}</div>
            {{end}}

            <form method="POST" action="/admin/login">
                <div class="form-group">
                    <label>用户名</label>
                    <input type="text" name="username" required>
                </div>
                <div class="form-group">
                    <label>密码</label>
                    <input type="password" name="password" required>
                </div>
                <button type="submit" class="submit-btn">登录</button>
            </form>

            <div class="links">
                <a href="/">返回首页</a>
            </div>
        </div>
    </div>
</body>
</html>

